﻿<%@ Page   Language="C#" AutoEventWireup="true" CodeBehind="historico.aspx.cs" Inherits="GesWork.actividades.historico" %>



    <asp:content ID="df" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
      
      
      
             <table class="tblGeneral" >
            <tr class="tblHeader">
                  
                  <td>
                    Tipo
                    </td>
                    <td>
                    Tarea
                    </td>
                    
                    <td>
                    Fecha de Inicio
                    </td>
                    <td>
                    Prioridad
                    </td>
                    

                </tr>
                <asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1">
                <ItemTemplate>
                <tr class="tblBody">
                    <td>
                    <img src="../images/activitytype<%# Eval("ACC_Type")%>.png" />
                    </td>
                    <td>
                    <a href="actividad.aspx?id=<%# Eval("ID") %>" >  <%# Eval("Subject")%> </a>
                    </td>
                    
                    <td>
                    <%# Eval("StartDate", "{0:dd/MM/yyyy}")%>
                    </td>
                    <td>
                    <%# Eval("priority")%>
                    </td>
                    

                </tr>
                </ItemTemplate>
                </asp:Repeater>
            </table>
    
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:gesworkConnectionString %>" 
        
                SelectCommand="SELECT Activity.ID, Activity.Subject, Activity.StartDate, Activity.ACC_IDPriority ,ActivityPriority.Description AS priority, Activity.ACC_Type
FROM Activity, ActivityPriority WHERE ACC_IDPriority=ActivityPriority.ID AND Activity.ACC_State = 2  ORDER BY StartDate ">
    </asp:SqlDataSource>
    
    
    <br />
             <br />
              <asp:ImageButton ID="NewButton" runat="server"   
                 ImageUrl="~/images/btnNuevo.png"  CssClass="botones" CausesValidation="False" 
                    CommandName="New" PostBackUrl="~/actividades/insertar.aspx"   />
<p>
</p>
    </asp:content>

